class AutoComplete::DocumentTypesController < ApplicationController

  def index
    @document_types = DocumetType.all :conditions => [
      'name like ? and (valleyer_id is null or valleyer_id = ?)', 
      "%#{params[:name]}%", current_valleyer.id
    ],
      :order => 'name asc'
  end

  def authorize
    
  end

end
